#include "formGDBServer.h"
#include "ui_formGDBServer.h"

#include "gdbTask.h"

formGDBServer::formGDBServer(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::formGDBServer)
{
    ui->setupUi(this);

    wk = new gdbTask;
    connect(wk, SIGNAL(outLog(QString)), this, SLOT(rcvLog(QString)));
    wk->start();
}

formGDBServer::~formGDBServer()
{
    delete wk;
    delete ui;
}

void formGDBServer::setParam(QString p)
{
    if (wk)
        wk->params = p;
}

void formGDBServer::rcvLog(QString s)
{
    emit outLog(s);
}
